package day16;

import java.io.Serializable;

public class Teacher implements Serializable {
    private String name;
//无参构造方法
    public void Teacher(){
    }
    //有参构造方法
    public Teacher(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
